package com.chixing.service;

import com.chixing.entity.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "customerServer")
public interface CustomerClient {
    @GetMapping(value = "customer/{custId}")
    Customer getById(@PathVariable("custId")Integer id);
}
